package com.orange.handler.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthMoneyResourceDataService;
import com.orange.modules.dao.AuthMoneyResourceRepository;
import com.orange.modules.entity.school_data.AuthMoneyResource;

@Service
public class AuthMoneyResourceDataServiceImpl implements AuthMoneyResourceDataService{
	
	@Autowired
	private AuthMoneyResourceRepository authMoneyResourceRepository;

	@Override
	public void insertMoneyResource(AuthMoneyResource amr) throws SQLException {
		// TODO Auto-generated method stub
		authMoneyResourceRepository.insertMoneyResource(amr);
		
	}

	@Override
	public AuthMoneyResource queryAuthMoneyResourcesBySchoolId(String schoolId,
			String loginType) throws SQLException {
		// TODO Auto-generated method stub
		AuthMoneyResource amr = authMoneyResourceRepository.queryAuthMoneyResourcesBySchoolId(schoolId, loginType);
		return amr;
	}

}
